package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BizYitiBiaozhunMapper;
import com.ruoyi.system.domain.BizYitiBiaozhun;
import com.ruoyi.system.service.IBizYitiBiaozhunService;
import com.ruoyi.common.core.text.Convert;

/**
 * 标准管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
@Service
public class BizYitiBiaozhunServiceImpl implements IBizYitiBiaozhunService 
{
    @Autowired
    private BizYitiBiaozhunMapper bizYitiBiaozhunMapper;

    /**
     * 查询标准管理
     * 
     * @param id 标准管理主键
     * @return 标准管理
     */
    @Override
    public BizYitiBiaozhun selectBizYitiBiaozhunById(Long id)
    {
        return bizYitiBiaozhunMapper.selectBizYitiBiaozhunById(id);
    }

    /**
     * 查询标准管理列表
     * 
     * @param bizYitiBiaozhun 标准管理
     * @return 标准管理
     */
    @Override
    public List<BizYitiBiaozhun> selectBizYitiBiaozhunList(BizYitiBiaozhun bizYitiBiaozhun)
    {
        return bizYitiBiaozhunMapper.selectBizYitiBiaozhunList(bizYitiBiaozhun);
    }

    /**
     * 新增标准管理
     * 
     * @param bizYitiBiaozhun 标准管理
     * @return 结果
     */
    @Override
    public int insertBizYitiBiaozhun(BizYitiBiaozhun bizYitiBiaozhun)
    {
        bizYitiBiaozhun.setCreateTime(DateUtils.getNowDate());
        return bizYitiBiaozhunMapper.insertBizYitiBiaozhun(bizYitiBiaozhun);
    }

    /**
     * 修改标准管理
     * 
     * @param bizYitiBiaozhun 标准管理
     * @return 结果
     */
    @Override
    public int updateBizYitiBiaozhun(BizYitiBiaozhun bizYitiBiaozhun)
    {
        return bizYitiBiaozhunMapper.updateBizYitiBiaozhun(bizYitiBiaozhun);
    }

    /**
     * 批量删除标准管理
     * 
     * @param ids 需要删除的标准管理主键
     * @return 结果
     */
    @Override
    public int deleteBizYitiBiaozhunByIds(String ids)
    {
        return bizYitiBiaozhunMapper.deleteBizYitiBiaozhunByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除标准管理信息
     * 
     * @param id 标准管理主键
     * @return 结果
     */
    @Override
    public int deleteBizYitiBiaozhunById(Long id)
    {
        return bizYitiBiaozhunMapper.deleteBizYitiBiaozhunById(id);
    }
}
